package com.fanhang.samples.springboot.data.mongodb.domain;

import java.io.Serializable;

import org.springframework.data.annotation.Id;

public class Country implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private String name;

	protected Country() {
	}

	public Country(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	@Override
	public String toString() {
		return getName();
	}
}
